package decorator;

import model.AgriculturalMachine;

public class ExtraFunctionDecorator extends AgriculturalMachineDecorator {
    public ExtraFunctionDecorator(AgriculturalMachine machine) {
        super(machine);
    }

    public void extraFunction() {
        System.out.println("执行额外功能");
    }

    @Override
    public void start() {
        super.start();
        extraFunction();
    }
}